package com.sharemarking.wa.platform.dto.orderDispatch;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sharemarking.wa.common.eum.OrderOperateTypeEum;

import java.util.List;

/**
 * @author dxy
 */
public class OrderListDto {
    @JsonIgnore
    private Integer id;
    @JsonIgnore
    private Integer parentId;
    private Integer state;
    private Integer distance;
    private String loadingAddress;
    private String unLoadingAddress;
    private String code;
    private List<WasteListDto>wasteList;
    private List<OrderOperateTypeEum> operate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getState() {
        if (state!=null){
            return state - 6;
        }
        return null;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getDistance() {
        return distance;
    }

    public void setDistance(Integer distance) {
        this.distance = distance;
    }

    public String getLoadingAddress() {
        return loadingAddress;
    }

    public void setLoadingAddress(String loadingAddress) {
        this.loadingAddress = loadingAddress;
    }

    public String getUnLoadingAddress() {
        return unLoadingAddress;
    }

    public void setUnLoadingAddress(String unLoadingAddress) {
        this.unLoadingAddress = unLoadingAddress;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<WasteListDto> getWasteList() {
        return wasteList;
    }

    public void setWasteList(List<WasteListDto> wasteList) {
        this.wasteList = wasteList;
    }

    public List<OrderOperateTypeEum> getOperate() {
        return operate;
    }

    public void setOperate(List<OrderOperateTypeEum> operate) {
        this.operate = operate;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}
